package gizwits.micoe;

import java.util.HashMap;
import java.util.Map;

import gizwits.kit.HttpKit;

public class GizwitsBlue {
	

	private static String token_url = "http://enterpriseapi.gizwits.com/v1/products/b8f0712a15af4e9bb074a61196b92895/access_token";
	private static String activation_url = "http://enterpriseapi.gizwits.com/v1/products/b8f0712a15af4e9bb074a61196b92895/devices/report/activation";

	public static void main(String[] args) {
		

		//System.out.println(HttpKit.get(activation_url));
		System.out.println(token());

	}
	
	/**
	 * "enterprise_id": "51aae8dd0a9c4e1ba174a00555d723dd",
  "enterprise_secret": "a5f0b6a6de4a47209edb411d06b5ca07",
  "product_secret": "998c6df025e8458a8fdda9cc77d8ecd7"
	 * @return
	 */
	public static String token(){
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("enterprise_id", "51aae8dd0a9c4e1ba174a00555d723dd");
		params.put("enterprise_secret", "a5f0b6a6de4a47209edb411d06b5ca07");
		params.put("product_secret", "998c6df025e8458a8fdda9cc77d8ecd7");
		return HttpKit.posts(token_url, params);
	}

}
